# -*- coding: utf-8 -*-
"""
创建日期: 2024/9/17   13:56

@author: justinc
@blog: https://blog.csdn.net/sjc122333?type=blog
@gitee: https://gitee.com/justinc666

"""
f1 = open("./示例文件/作者.txt", mode="w+", encoding="utf-8")

data = f1.write("justinc")
print(data)  # 返回写入字符数

content = f1.read()
print(content)  # 光标移动到最后，所以没有内容打印
f1.close()
